package com.gla.giliair.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CabinInfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Long offset;

    public CabinInfoExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Long offset) {
        this.offset = offset;
    }

    public Long getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCabinInfoIdIsNull() {
            addCriterion("cabin_info_id is null");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdIsNotNull() {
            addCriterion("cabin_info_id is not null");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdEqualTo(Long value) {
            addCriterion("cabin_info_id =", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdNotEqualTo(Long value) {
            addCriterion("cabin_info_id <>", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdGreaterThan(Long value) {
            addCriterion("cabin_info_id >", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdGreaterThanOrEqualTo(Long value) {
            addCriterion("cabin_info_id >=", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdLessThan(Long value) {
            addCriterion("cabin_info_id <", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdLessThanOrEqualTo(Long value) {
            addCriterion("cabin_info_id <=", value, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdIn(List<Long> values) {
            addCriterion("cabin_info_id in", values, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdNotIn(List<Long> values) {
            addCriterion("cabin_info_id not in", values, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdBetween(Long value1, Long value2) {
            addCriterion("cabin_info_id between", value1, value2, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andCabinInfoIdNotBetween(Long value1, Long value2) {
            addCriterion("cabin_info_id not between", value1, value2, "cabinInfoId");
            return (Criteria) this;
        }

        public Criteria andFlightIdIsNull() {
            addCriterion("flight_id is null");
            return (Criteria) this;
        }

        public Criteria andFlightIdIsNotNull() {
            addCriterion("flight_id is not null");
            return (Criteria) this;
        }

        public Criteria andFlightIdEqualTo(Long value) {
            addCriterion("flight_id =", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdNotEqualTo(Long value) {
            addCriterion("flight_id <>", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdGreaterThan(Long value) {
            addCriterion("flight_id >", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdGreaterThanOrEqualTo(Long value) {
            addCriterion("flight_id >=", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdLessThan(Long value) {
            addCriterion("flight_id <", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdLessThanOrEqualTo(Long value) {
            addCriterion("flight_id <=", value, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdIn(List<Long> values) {
            addCriterion("flight_id in", values, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdNotIn(List<Long> values) {
            addCriterion("flight_id not in", values, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdBetween(Long value1, Long value2) {
            addCriterion("flight_id between", value1, value2, "flightId");
            return (Criteria) this;
        }

        public Criteria andFlightIdNotBetween(Long value1, Long value2) {
            addCriterion("flight_id not between", value1, value2, "flightId");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceIsNull() {
            addCriterion("first_class_price is null");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceIsNotNull() {
            addCriterion("first_class_price is not null");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceEqualTo(BigDecimal value) {
            addCriterion("first_class_price =", value, "firstClassPrice");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceNotEqualTo(BigDecimal value) {
            addCriterion("first_class_price <>", value, "firstClassPrice");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceGreaterThan(BigDecimal value) {
            addCriterion("first_class_price >", value, "firstClassPrice");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("first_class_price >=", value, "firstClassPrice");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceLessThan(BigDecimal value) {
            addCriterion("first_class_price <", value, "firstClassPrice");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("first_class_price <=", value, "firstClassPrice");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceIn(List<BigDecimal> values) {
            addCriterion("first_class_price in", values, "firstClassPrice");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceNotIn(List<BigDecimal> values) {
            addCriterion("first_class_price not in", values, "firstClassPrice");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("first_class_price between", value1, value2, "firstClassPrice");
            return (Criteria) this;
        }

        public Criteria andFirstClassPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("first_class_price not between", value1, value2, "firstClassPrice");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceIsNull() {
            addCriterion("business_class_price is null");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceIsNotNull() {
            addCriterion("business_class_price is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceEqualTo(BigDecimal value) {
            addCriterion("business_class_price =", value, "businessClassPrice");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceNotEqualTo(BigDecimal value) {
            addCriterion("business_class_price <>", value, "businessClassPrice");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceGreaterThan(BigDecimal value) {
            addCriterion("business_class_price >", value, "businessClassPrice");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("business_class_price >=", value, "businessClassPrice");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceLessThan(BigDecimal value) {
            addCriterion("business_class_price <", value, "businessClassPrice");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("business_class_price <=", value, "businessClassPrice");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceIn(List<BigDecimal> values) {
            addCriterion("business_class_price in", values, "businessClassPrice");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceNotIn(List<BigDecimal> values) {
            addCriterion("business_class_price not in", values, "businessClassPrice");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("business_class_price between", value1, value2, "businessClassPrice");
            return (Criteria) this;
        }

        public Criteria andBusinessClassPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("business_class_price not between", value1, value2, "businessClassPrice");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceIsNull() {
            addCriterion("economy_class_price is null");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceIsNotNull() {
            addCriterion("economy_class_price is not null");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceEqualTo(BigDecimal value) {
            addCriterion("economy_class_price =", value, "economyClassPrice");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceNotEqualTo(BigDecimal value) {
            addCriterion("economy_class_price <>", value, "economyClassPrice");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceGreaterThan(BigDecimal value) {
            addCriterion("economy_class_price >", value, "economyClassPrice");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("economy_class_price >=", value, "economyClassPrice");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceLessThan(BigDecimal value) {
            addCriterion("economy_class_price <", value, "economyClassPrice");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("economy_class_price <=", value, "economyClassPrice");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceIn(List<BigDecimal> values) {
            addCriterion("economy_class_price in", values, "economyClassPrice");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceNotIn(List<BigDecimal> values) {
            addCriterion("economy_class_price not in", values, "economyClassPrice");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("economy_class_price between", value1, value2, "economyClassPrice");
            return (Criteria) this;
        }

        public Criteria andEconomyClassPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("economy_class_price not between", value1, value2, "economyClassPrice");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityIsNull() {
            addCriterion("first_class_used_totality is null");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityIsNotNull() {
            addCriterion("first_class_used_totality is not null");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityEqualTo(Integer value) {
            addCriterion("first_class_used_totality =", value, "firstClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityNotEqualTo(Integer value) {
            addCriterion("first_class_used_totality <>", value, "firstClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityGreaterThan(Integer value) {
            addCriterion("first_class_used_totality >", value, "firstClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityGreaterThanOrEqualTo(Integer value) {
            addCriterion("first_class_used_totality >=", value, "firstClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityLessThan(Integer value) {
            addCriterion("first_class_used_totality <", value, "firstClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityLessThanOrEqualTo(Integer value) {
            addCriterion("first_class_used_totality <=", value, "firstClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityIn(List<Integer> values) {
            addCriterion("first_class_used_totality in", values, "firstClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityNotIn(List<Integer> values) {
            addCriterion("first_class_used_totality not in", values, "firstClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityBetween(Integer value1, Integer value2) {
            addCriterion("first_class_used_totality between", value1, value2, "firstClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andFirstClassUsedTotalityNotBetween(Integer value1, Integer value2) {
            addCriterion("first_class_used_totality not between", value1, value2, "firstClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityIsNull() {
            addCriterion("business_class_used_totality is null");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityIsNotNull() {
            addCriterion("business_class_used_totality is not null");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityEqualTo(Integer value) {
            addCriterion("business_class_used_totality =", value, "businessClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityNotEqualTo(Integer value) {
            addCriterion("business_class_used_totality <>", value, "businessClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityGreaterThan(Integer value) {
            addCriterion("business_class_used_totality >", value, "businessClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityGreaterThanOrEqualTo(Integer value) {
            addCriterion("business_class_used_totality >=", value, "businessClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityLessThan(Integer value) {
            addCriterion("business_class_used_totality <", value, "businessClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityLessThanOrEqualTo(Integer value) {
            addCriterion("business_class_used_totality <=", value, "businessClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityIn(List<Integer> values) {
            addCriterion("business_class_used_totality in", values, "businessClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityNotIn(List<Integer> values) {
            addCriterion("business_class_used_totality not in", values, "businessClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityBetween(Integer value1, Integer value2) {
            addCriterion("business_class_used_totality between", value1, value2, "businessClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andBusinessClassUsedTotalityNotBetween(Integer value1, Integer value2) {
            addCriterion("business_class_used_totality not between", value1, value2, "businessClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityIsNull() {
            addCriterion("economy_class_used_totality is null");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityIsNotNull() {
            addCriterion("economy_class_used_totality is not null");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityEqualTo(Integer value) {
            addCriterion("economy_class_used_totality =", value, "economyClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityNotEqualTo(Integer value) {
            addCriterion("economy_class_used_totality <>", value, "economyClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityGreaterThan(Integer value) {
            addCriterion("economy_class_used_totality >", value, "economyClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityGreaterThanOrEqualTo(Integer value) {
            addCriterion("economy_class_used_totality >=", value, "economyClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityLessThan(Integer value) {
            addCriterion("economy_class_used_totality <", value, "economyClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityLessThanOrEqualTo(Integer value) {
            addCriterion("economy_class_used_totality <=", value, "economyClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityIn(List<Integer> values) {
            addCriterion("economy_class_used_totality in", values, "economyClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityNotIn(List<Integer> values) {
            addCriterion("economy_class_used_totality not in", values, "economyClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityBetween(Integer value1, Integer value2) {
            addCriterion("economy_class_used_totality between", value1, value2, "economyClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andEconomyClassUsedTotalityNotBetween(Integer value1, Integer value2) {
            addCriterion("economy_class_used_totality not between", value1, value2, "economyClassUsedTotality");
            return (Criteria) this;
        }

        public Criteria andDiscountIdIsNull() {
            addCriterion("discount_id is null");
            return (Criteria) this;
        }

        public Criteria andDiscountIdIsNotNull() {
            addCriterion("discount_id is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountIdEqualTo(Long value) {
            addCriterion("discount_id =", value, "discountId");
            return (Criteria) this;
        }

        public Criteria andDiscountIdNotEqualTo(Long value) {
            addCriterion("discount_id <>", value, "discountId");
            return (Criteria) this;
        }

        public Criteria andDiscountIdGreaterThan(Long value) {
            addCriterion("discount_id >", value, "discountId");
            return (Criteria) this;
        }

        public Criteria andDiscountIdGreaterThanOrEqualTo(Long value) {
            addCriterion("discount_id >=", value, "discountId");
            return (Criteria) this;
        }

        public Criteria andDiscountIdLessThan(Long value) {
            addCriterion("discount_id <", value, "discountId");
            return (Criteria) this;
        }

        public Criteria andDiscountIdLessThanOrEqualTo(Long value) {
            addCriterion("discount_id <=", value, "discountId");
            return (Criteria) this;
        }

        public Criteria andDiscountIdIn(List<Long> values) {
            addCriterion("discount_id in", values, "discountId");
            return (Criteria) this;
        }

        public Criteria andDiscountIdNotIn(List<Long> values) {
            addCriterion("discount_id not in", values, "discountId");
            return (Criteria) this;
        }

        public Criteria andDiscountIdBetween(Long value1, Long value2) {
            addCriterion("discount_id between", value1, value2, "discountId");
            return (Criteria) this;
        }

        public Criteria andDiscountIdNotBetween(Long value1, Long value2) {
            addCriterion("discount_id not between", value1, value2, "discountId");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIsNull() {
            addCriterion("is_deleted is null");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIsNotNull() {
            addCriterion("is_deleted is not null");
            return (Criteria) this;
        }

        public Criteria andIsDeletedEqualTo(Integer value) {
            addCriterion("is_deleted =", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotEqualTo(Integer value) {
            addCriterion("is_deleted <>", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedGreaterThan(Integer value) {
            addCriterion("is_deleted >", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_deleted >=", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedLessThan(Integer value) {
            addCriterion("is_deleted <", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedLessThanOrEqualTo(Integer value) {
            addCriterion("is_deleted <=", value, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedIn(List<Integer> values) {
            addCriterion("is_deleted in", values, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotIn(List<Integer> values) {
            addCriterion("is_deleted not in", values, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedBetween(Integer value1, Integer value2) {
            addCriterion("is_deleted between", value1, value2, "isDeleted");
            return (Criteria) this;
        }

        public Criteria andIsDeletedNotBetween(Integer value1, Integer value2) {
            addCriterion("is_deleted not between", value1, value2, "isDeleted");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}